package com.rds.common.constant;

import com.rds.common.utils.DateUtils;

/**
 * S3 文件存储服务器参数常量类
 * @version : 1.0
 * @Copyright: Copyright(c) 2020-2021 All right reserved
 * @Company: GUANGZHOU RDS Co.,LTD
 * @author: LiChuanlong
 * @create Date : 2022/1/8 : 15:43
 */
//public class S3Constants {
//    //test-bucket 测试桶; plm-bucket 正式桶(切换环境时,修改同名称即可)
//    private static final String bucketName = "test-bucket";
//    /*S3 服务器桶名称***/
//    public static final String BUCKET_NAME = bucketName +"/dmsFile/"+ DateUtils.dateTime() + "/" + System.currentTimeMillis();
//
//    /*REST Endpoint**/
//    //测试:10.192.32.101:8060;正式:obs.sunnyoptical.cn:8060
//    public final static String SERVER_URL_PORT = "10.192.32.101:8060";
//    /*Access Key ID**/
//    //测试:8GGUVVJLKPIE768R7D7N;正式:I2BJS8D0DF0AKU8MRHG3
//    public final static String ACCESS_KEY = "8GGUVVJLKPIE768R7D7N";
//    /*Secret Acess Key**/
//    //测试:Yu9fNxaTI6MKDOdrkEPnag8d3MxQBlNwSaFChE15;正式:Hol5mN8yc3sg2B132pL2AoEJoW2TEQA0VZpc99He
//    public final static String SECRET_KEY = "Yu9fNxaTI6MKDOdrkEPnag8d3MxQBlNwSaFChE15";
//    /*对象用户**/
//    //测试:test;正式:plm
//    public final static String S3_USER = "test";
//
//}

public class S3Constants {
    //test-bucket 测试桶; plm-bucket 正式桶(切换环境时,修改同名称即可)
    private static final String bucketName = "plm-bucket";
    /*S3 服务器桶名称***/
    public static final String BUCKET_NAME = bucketName +"/dmsFile/"+ DateUtils.dateTime() + "/" + System.currentTimeMillis();

    /*REST Endpoint**/
    //测试:10.192.32.101:8060;正式:obs.sunnyoptical.cn:8060
    public final static String SERVER_URL_PORT = "obs.sunnyoptical.cn:8060";
    /*Access Key ID**/
    //测试:8GGUVVJLKPIE768R7D7N;正式:I2BJS8D0DF0AKU8MRHG3
    public final static String ACCESS_KEY = "I2BJS8D0DF0AKU8MRHG3";
    /*Secret Acess Key**/
    //测试:Yu9fNxaTI6MKDOdrkEPnag8d3MxQBlNwSaFChE15;正式:Hol5mN8yc3sg2B132pL2AoEJoW2TEQA0VZpc99He
    public final static String SECRET_KEY = "Hol5mN8yc3sg2B132pL2AoEJoW2TEQA0VZpc99He";
    /*对象用户**/
    //测试:test;正式:plm
    public final static String S3_USER = "plm";
}
